@extends('Shop.index')

@section('content')

<!--aside nav-->
<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">
      <div class="page_title">
       <h2 class="fl">订单列表示例</h2>
       <a class="fr top_rt_btn add_icon">添加商品</a>
      </div>
      <section class="mtb">
       <form style="width:400px;" action="/sporder/onindex">
          <input type="text" class="textbox textbox_225" name="keywords" value="{{$data->keywords or ''}}" placeholder="输入产品关键词...">
          <input type="submit" value="查询" class="group_btn"/>
        </form>
      </section>
      <table class="table">
       <tr>
        <th>订单编号</th>
        <th>商品名称</th>
        <th>收件人</th>
        <th>联系电话</th>
        <th>收件人地址</th>
        <th>订单金额</th>
        <th>状态</th>
        <th>操作</th>
       </tr>
       @foreach($order as $v)
       <tr>
        <td class="center">{{$v->onum}}</td>
        <td>{{$v->spname}}</td>
        <td>{{$v->name}}</td>
        <td>{{$v->phone}}</td>
        <td>
         <address>{{$v->detail}}</address>
        </td>
        <td class="center"><strong class="rmb_icon">{{$v->orderMoney}}</strong></td>
        <td class="center">
          @if($v->oStatus=='0')未付款@endif
          @if($v->oStatus=='1')已付款未发货@endif
          @if($v->oStatus=='2')已发货@endif
          @if($v->oStatus=='3')待收货@endif
          @if($v->oStatus=='4')已收货@endif
        </td>
        <td class="center">
         <a href="/sporder/show/{{$v->onum}}" title="查看订单" class="link_icon" >&#118;</a>
        </td>
       </tr>
       @endforeach
       
      </table>
      <aside class="paging">
       <a>第一页</a>
       <a>1</a>
       <a>2</a>
       <a>3</a>
       <a>…</a>
       <a>1004</a>
       <a>最后一页</a>
      </aside>
 </div>
</section>
@endsection
@section('js')
<script src="/shopadmin/js/ueditor.config.js"></script>
<script src="/shopadmin/js/ueditor.all.min.js"> </script>
@endsection